<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@include file="/pageRc/common/common.jsp"%>

<!DOCTYPE html>
<html lang="en" style="overflow-x: hidden">
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport"
	content="initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="msapplication-tap-highlight" content="no">
<script type="text/javascript"
	src="<%=commonPath %>/pageRc/js/jquery-1.9.1.min.js"></script> 
<title>待审核需求</title>

</head>
<body>

	<table align="center"
		style="font-family: verdana, arial, sans-serif; font-size: 11px; color: #333333; border-width: 1px; border-color: #666666; border-collapse: collapse;">
		<tr>
			<th colspan="10"
				style="border-width: 1px; padding: 8px; border-style: solid; border-color: #666666; background-color: #dedede;">待审核需求</th>
		</tr>
		<tr>
			<th colspan="2"
				style="border-width: 1px; padding: 8px; border-style: solid; border-color: #666666; background-color: #dedede;">团队名称</th>
			<th colspan="2"
				style="border-width: 1px; padding: 8px; border-style: solid; border-color: #666666; background-color: #dedede;">需求名称</th>
		
			<th colspan="2"
				style="border-width: 1px; padding: 8px; border-style: solid; border-color: #666666; background-color: #dedede;">待审业务</th>
			<th colspan="2"
				style="border-width: 1px; padding: 8px; border-style: solid; border-color: #666666; background-color: #dedede;">操作</th>
		</tr>
		<c:forEach items="${list}" var="need">
			<tr>
				<td colspan="2"
					style="border-width: 1px; padding: 8px; border-style: solid; border-color: #666666; background-color: #ffffff;">${need.needNo}</td>
				<td colspan="2"
					style="border-width: 1px; padding: 8px; border-style: solid; border-color: #666666; background-color: #ffffff;">${need.needName}</td>
				<td colspan="2"
					style="border-width: 1px; padding: 8px; border-style: solid; border-color: #666666; background-color: #ffffff;">[新增需求审核]</td>
				<td colspan="2"
					style="border-width: 1px; padding: 8px; border-style: solid; border-color: #666666; background-color: #ffffff;"><button onclick="pass('${need.rouid}',this)">通过</button></td>
			</tr>
		</c:forEach>
	</table>

</body>
<script type="text/javascript">
	function pass(rouid,obj){
		$.ajax({
			url:"../../page/need/updateStateByRouid.do",
			data:{"rouid":rouid,"state":"01"},
			type:"post",
			dataType:"json",
			success:function(data){
				$(obj).parent().parent().remove();
			}
		})
	}
</script>
</html>